import java.io.*;

public class Test1 {
    public static void main(String[] args) {
        long start=System.currentTimeMillis();
        try (BufferedInputStream bis=new BufferedInputStream(new FileInputStream("D:\\微信\\WeChat\\Weixin\\Weixin.exe"));
             BufferedOutputStream bos=new BufferedOutputStream(new FileOutputStream("D:\\文档\\重要文件\\4.exe")))
        {
            byte[]b=new byte[1024];
            int len;
            while ((len=bis.read(b))!=-1){
                bos.write(b,0,len);
            }

        } catch (IOException e) {
            e.printStackTrace();
        }
        long end=System.currentTimeMillis();
        System.out.println((end-start));
    }
}
